
import java.io.PrintWriter;
import java.util.HashMap;

class ByValueParameter extends Parameter {

	public ByValueParameter(Node t, String n) {
		super(t, n);
	}

	@Override
	public void printWayOfPassing(PrintWriter pw) {
		pw.println("Node name : ByValueParameter ");
	}
	public String translate(HashMap<String, PrintWriter> pws,String strPare, SymbolTable rt, String parent){
		String key = rt.getStack().get(1);
		PrintWriter pw = pws.get(key);
		
		type_.translate(pws, "", rt, parent);
		pw.print(" "+name_);
		return null;
	}
}
